package com.example.xinli.model;

public class Comment {
    private String id;
    private String username;
    private String nickname;
    private String content;
    private long timestamp;

    public Comment() {
        // 默认构造函数
    }

    public Comment(String id, String username, String nickname, String content, long timestamp) {
        this.id = id;
        this.username = username;
        this.nickname = nickname;
        this.content = content;
        this.timestamp = timestamp;
    }

    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}
